/*
 Navicat Premium Data Transfer

 Source Server         : 本机SQL Server
 Source Server Type    : SQL Server
 Source Server Version : 13001742
 Source Host           : localhost:1433
 Source Catalog        : Hotel
 Source Schema         : dbo

 Target Server Type    : SQL Server
 Target Server Version : 13001742
 File Encoding         : 65001

 Date: 04/01/2022 20:06:06
*/


-- ----------------------------
-- Table structure for t_type
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[t_type]') AND type IN ('U'))
	DROP TABLE [dbo].[t_type]
GO

CREATE TABLE [dbo].[t_type] (
  [id] int  IDENTITY(1,1) NOT NULL,
  [name] varchar(255) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [area] int  NOT NULL,
  [bed] int  NOT NULL,
  [people] int  NOT NULL,
  [air] tinyint  NOT NULL,
  [television] tinyint  NOT NULL,
  [bathroom] tinyint  NOT NULL
)
GO

ALTER TABLE [dbo].[t_type] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Records of t_type
-- ----------------------------
SET IDENTITY_INSERT [dbo].[t_type] ON
GO

INSERT INTO [dbo].[t_type] ([id], [name], [area], [bed], [people], [air], [television], [bathroom]) VALUES (N'1', N'三无单人间', N'25', N'1', N'1', N'0', N'0', N'0')
GO

INSERT INTO [dbo].[t_type] ([id], [name], [area], [bed], [people], [air], [television], [bathroom]) VALUES (N'2', N'空调单人间', N'25', N'1', N'1', N'1', N'0', N'0')
GO

INSERT INTO [dbo].[t_type] ([id], [name], [area], [bed], [people], [air], [television], [bathroom]) VALUES (N'3', N'电视单人间', N'25', N'1', N'1', N'0', N'1', N'0')
GO

INSERT INTO [dbo].[t_type] ([id], [name], [area], [bed], [people], [air], [television], [bathroom]) VALUES (N'4', N'独卫单人间', N'25', N'1', N'1', N'0', N'0', N'1')
GO

INSERT INTO [dbo].[t_type] ([id], [name], [area], [bed], [people], [air], [television], [bathroom]) VALUES (N'5', N'非独卫单人间', N'30', N'1', N'1', N'1', N'1', N'0')
GO

INSERT INTO [dbo].[t_type] ([id], [name], [area], [bed], [people], [air], [television], [bathroom]) VALUES (N'6', N'标准单人间', N'30', N'1', N'1', N'1', N'1', N'1')
GO

INSERT INTO [dbo].[t_type] ([id], [name], [area], [bed], [people], [air], [television], [bathroom]) VALUES (N'7', N'舒适双人间', N'35', N'2', N'2', N'1', N'0', N'1')
GO

INSERT INTO [dbo].[t_type] ([id], [name], [area], [bed], [people], [air], [television], [bathroom]) VALUES (N'8', N'标准双人间', N'35', N'2', N'2', N'1', N'1', N'1')
GO

INSERT INTO [dbo].[t_type] ([id], [name], [area], [bed], [people], [air], [television], [bathroom]) VALUES (N'9', N'大床房', N'35', N'1', N'2', N'1', N'1', N'1')
GO

INSERT INTO [dbo].[t_type] ([id], [name], [area], [bed], [people], [air], [television], [bathroom]) VALUES (N'10', N'4人家庭房', N'45', N'3', N'4', N'1', N'1', N'1')
GO

SET IDENTITY_INSERT [dbo].[t_type] OFF
GO


-- ----------------------------
-- Auto increment value for t_type
-- ----------------------------
DBCC CHECKIDENT ('[dbo].[t_type]', RESEED, 12)
GO


-- ----------------------------
-- Primary Key structure for table t_type
-- ----------------------------
ALTER TABLE [dbo].[t_type] ADD CONSTRAINT [PK__t_type__id] PRIMARY KEY CLUSTERED ([id])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO

